<template>
  <div>
    <input type="file" multiple @change="handleFileChange" />
    <button @click="exportFiles">导出压缩包</button>
  </div>
</template>

<script>
import { exportZip } from "../utils/useZip";

export default {
  name: "ExportZipExample",
  data() {
    return {
      files: [],
    };
  },
  methods: {
    handleFileChange(event) {
      this.files = event.target.files;
    },
    exportFiles() {
      exportZip(this.files, "selected_files.zip");
    },
  },
};
</script>